#footer{
    text-align: center; 
    padding: 7px 0;
    background: #fafafa;
}

.wrapper {
    width: 470px;
    margin: 7px auto;
    position: relative;
    border: 10px solid #fff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 0 2px #999;
    -moz-box-shadow: 0 0 2px #999;
    box-shadow: 0 0 2px #999;

}

/** Gallery **/

#gallery {
    /*border: 1px solid red;*/
    position: relative;
    overflow: hidden;
    /*
    (4 * width: 150px) + (3 * margin-right: 10px) = 483px
    */
    width: 480px;
    height: 870px;
}

#gallery .thumbnails {
    width: 20000em;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

#gallery .thumbnails li {
    float: left;
    width: 160px;
    height: 210px;
    margin: 0 !important;
    display: none;
}

#gallery .thumbnails li div{
    margin: 0 10px 10px 0;
    display: none;
}

#gallery .thumbnails img {
    width : 150px;
    height: 200px;
}

/** Controls **/

.prev,
.next {
    position: absolute;
    top: 420px;
    width: 30px;
    height: 30px;
    text-align: center;
    background: #4E443C;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 1px #000;
    font: 24px/27px Arial, sans-serif;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    -webkit-box-shadow: 0 0 2px #999;
    -moz-box-shadow: 0 0 2px #999;
    box-shadow: 0 0 2px #999;
    display: none;
}

.prev {
    left: -50px;
}

.next {
    right: -50px;
}

.prev:hover span,
.next:hover span {
    display: block;
}
